package top.zhangjianyong.blog.portal.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.zhangjianyong.blog.response.ApiResponse;
import top.zhangjianyong.blog.service.TagService;

/**
 * @author zhangjianyong
 * @since 2024/8/22 下午7:59
 */
@RequestMapping("/portal/tag")
@RestController("portalTag")
public class TagController {
  private final TagService tagService;

  public TagController(TagService tagService) {
    this.tagService = tagService;
  }

  @PostMapping("/list")
  public ApiResponse listNotEmpty() {
    return tagService.listNotEmpty();
  }
}
